package com.atguigu.stgy.app.service.impl;

import com.atguigu.stgy.app.mapper.ApartmentLabelMapper;
import com.atguigu.stgy.app.service.ApartmentLabelService;
import com.atguigu.stgy.model.dto.ApartmentDTO;
import com.atguigu.stgy.model.entity.ApartmentLabel;
import com.atguigu.stgy.model.entity.LabelInfo;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class ApartmentLabelServiceImpl extends ServiceImpl<ApartmentLabelMapper, ApartmentLabel> implements ApartmentLabelService {


    @Override
    public List<LabelInfo> getLabelInfosByApartmentId(Long apartmentId) {

        return baseMapper.selectLabelInfosByApartmentId(apartmentId);
    }


}
